/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBlayer;
import Modellayer.*;
import java.util.ArrayList;
/**
 *
 * @author Søren
 */
public interface IFDBInvoice {
    // get all Invoices
    public ArrayList<Invoice> getAllInvoices(boolean retrieveAssociation);
    //get one Invoice having the invoiceNo
    public Invoice findInvoice(int invoiceNo, boolean retrieveAssociation);
    //insert a new Invoice
    public int insertInvoice(Invoice invoice);
    //update information about a invoice
    public int updateInvoice(Invoice invoice);
    // delete invoice having the ID
    public void deleteInvoice(int ID);

}